package com.chuang.bootplus.base.constant;

import cn.hutool.core.date.DateUnit;
import io.swagger.models.auth.In;

import java.time.ZoneId;

/**
 * @author lcc
 * @create 2021-07-08
 * @注意 本内容仅限于xinou内部传阅，禁止外泄以及用于其他的商业目的
 */
public class Constant {
    /**
     * dataList 常量值
     */
    public static final String DATA_LIST = "dataList";
    /**
     * dataInfo 常量值
     */
    public static final String DATA_INFO = "dataInfo";
    /**
     * total 常量值
     */
    public static final String TOTAL = "total";
    /**
     * 当 咨讯、活动等 Topic 处于关闭时的显示文本常量
     */
    public static final String TOPIC_CLOSE_TEXT = "抱歉，此{}已被删除。";
    /**
     * 当问价过大时常量
     */
    public static final String FILE_TO_BIG = "文件过大 限制为:[{}]MB";
    /**
     * 上海时区常量
     */
    public static final ZoneId SHANG_HAI = ZoneId.of("Asia/Shanghai");
    /**
     * aes key
     */
    public static final String AES_KEY = "xxxxxxxxxxxxxxxx";
    /**
     * web jwt 失效时间
     */
    public static final Integer WEB_JWT_TIME = 1;
    /**
     * sys jwt 失效时间
     */
    public static final Integer SYS_JWT_TIME = 1;
    /**
     * web jwt 失效时间单位
     */
    public static final DateUnit WEB_JWT_TIME_UNIT = DateUnit.DAY;
    /**
     * sys jwt 失效时间单位
     */
    public static final DateUnit SYS_JWT_TIME_UNIT = DateUnit.DAY;

    /**
     * 签到加豆
     */
    public static final Integer SIGN_IN_BEAN = 3;

    /**
     * 发圈加豆
     */
    public static final Integer TOPIC_SAVE_BEAN = 5;

    /**
     * 看首页文章加豆
     */
    public static final Integer LOOK_FRONT_TIPS_BEAN = 2;

    /**
     * 题目类型
     */
    public static final Integer TIP_TYPE_TIP = 1;
    public static final Integer TIP_TYPE_PROBLEM = 2;
    public static final Integer TIP_TYPE_INDEX=3;

    /**
     * 勋章id
     */
    public static final Long MEDAL_TYPE_ONE=1L;
    public static final Long MEDAL_TYPE_TWO=2L;
    public static final Long MEDAL_TYPE_THREE=3L;
    public static final Long MEDAL_TYPE_FOUR=4L;
    public static final Long MEDAL_TYPE_FIVE=5L;
    public static final Long MEDAL_TYPE_SIX=6L;
    public static final Long MEDAL_TYPE_SEVEN=7L;

    /**
     * 勋章碳豆临界值
     */
    public static final Integer BEAN_NUM1=10;
    public static final Integer BEAN_NUM2=100;
    public static final Integer BEAN_NUM3=500;

    /**
     * 图片类型
     */
    public static final String PICTURE_TYPE_TOPIC = "话题图片";
    public static final String PICTURE_TYPE_INDEX = "轮播图";

    /**
     * 签到天数临界值
     */
    public static final Integer DAY_NUM7=7;
    public static final Integer DAY_NUM15=15;
    public static final Integer DAY_NUM30=30;

}
